/*
 * User: rant
 * Date: Aug 5, 2007
 *
 *
 */
package laMalinche.propertyChangeAdapters.rules;

import laMalinche.rete.rule.*;

import java.util.*;

/**
 *
 */
public class BasicDerivationRule extends BasicProductionRule implements DerivationRule {
	private final List<Condition> conditions = new ArrayList<Condition>();

	public BasicDerivationRule() {
		setProductionRuleType(BusinessRuleType.derivedInSession);
	}

	public void addCondition(Condition condition){
			conditions.add(condition);
	}

	public List<Condition> getConditions() {
		return conditions;
	}

	public String getDerivedFieldOgnl() {
        return ((FieldAction) getAction()).getFieldOgnl();
	}
}